import styles from './styles.less';
import SearchForm from './components/SearchForm';
import DataTable from './components/DataTable';
import Detail from './components/Detail';
import {useState} from 'react';

const App = () => {

  const [tablePayload, setTablePayload] = useState({pageNum: 1, pageSize: 15, param: {}});
  const [detail, setDetail] = useState(undefined);

  return (
    <div className={styles.myContainer}>
      <SearchForm data={{tablePayload, setTablePayload}}/>
      <Detail data={{detail, setDetail}}/>
      <DataTable data={{tablePayload, setDetail,setTablePayload}}/>
    </div>
  );
};

export default App;
